<div class="ui-g ui-fluid">
    <div class="ui-g-12 ui-lg-6">
        <!-- Left Side -->
        <div class="card">
            <h1>Overlay Panel</h1>
            <div class="ui-g">
                <div class="ui-g-6">
                    <button type="button" pButton label="Image" (click)="op1.toggle($event)"></button>
                    <p-overlayPanel #op1>
                        <img src="assets/demo/images/nature/nature1.jpg" alt="Nature 1" />
                    </p-overlayPanel>
                </div>
                <div class="ui-g-6">
                    <button type="button" pButton label="DataTable" (click)="op2.toggle($event)"></button>
                    <p-overlayPanel #op2 [showCloseIcon]="true" [dismissable]="false">
                        <p-dataTable [value]="cars" [style]="{'width':'500px'}">
                            <p-column field="vin" header="Vin" [sortable]="true"></p-column>
                            <p-column field="year" header="Year" [sortable]="true"></p-column>
                            <p-column field="brand" header="Brand" [sortable]="true"></p-column>
                            <p-column field="color" header="Color" [sortable]="true"></p-column>
                        </p-dataTable>
                    </p-overlayPanel>
                </div>
            </div>
        </div>
        
        <div class="card">
            <h1>Dialog</h1>
            <p-dialog header="Godfather I" [(visible)]="display" modal="modal" showEffect="fade" width="400">
                <p>The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding. 
                   His beloved son Michael has just come home from the war, but does not intend to become part of his father's business. 
                   Through Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family, 
                   kind and benevolent to those who give respect,
                   but given to ruthless violence whenever anything stands against the good of the family.</p>
                <p-footer>
                    <div class="ui-dialog-buttonpane ui-helper-clearfix">
                        <button type="button" pButton icon="fa-close" (click)="display=false" label="No"></button>
                        <button type="button" pButton icon="fa-check" (click)="display=false" label="Yes"></button>
                    </div>
                </p-footer>
            </p-dialog>

            <button type="text" (click)="display=true" pButton icon="fa-external-link-square" label="Show"></button>
        </div>
        
        <div class="card">
            <h1>Confirm Dialog</h1>
            <p-confirmDialog header="Confirmation" icon="fa ui-icon-warning" width="425"></p-confirmDialog>

            <button type="text" (click)="confirm()" pButton icon="fa-check" label="Confirm"></button>
        </div>
        
        <div class="card">
            <h1>Tooltip</h1>
            <input type="text" pInputText pTooltip="Enter your username" placeholder="Right" tooltipEvent="focus">
        </div>
    </div>
    
    <div class="ui-g-12 ui-lg-6">
        <!-- Right Side -->
        <div class="card">
            <h1>LightBox</h1>
            <p-lightbox [images]="images"></p-lightbox>
        </div>
    </div>
</div>